public class FileLoader<T> {

  private String filePath;

  FileLoader(String filePath) { setFilePath(filePath); }

  public void setFilePath(String filePath) { this.filePath = filePath; }

  public T parse(IFactory<T> factory) {
    return factory.build(filePath);
  }
}
